<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<link rel="stylesheet" href="/layui/layui.css"/>
  <link th:href="@{/static/layui/css/layui.css}" rel="stylesheet" media="all"/>
  <script th:src="@{/static/layui/layui.all.js}"></script>   
</head>
<body>
  <h2>系统登录</h2>
 
 <!-- 表单提交用户信息,注意字段的设置,直接是*{} --> 
 <form action="#" class="layui-form layui-form-pane" th:action="@{/loginCheck}" th:object="${sysUser}" method="post"> 
  <div class="layui-form-item">
    <label class="layui-form-label">用户</label>
    <div class="layui-input-inline">
      <input th:field="*{code}" placeholder="" autocomplete="off" class="layui-input" type="password">
    </div>
    <div class="layui-form-mid layui-word-aux">请务必填写登录名:admin</div>
  </div>
  
   <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-inline">
      <input name="password" th:field="*{password}"  placeholder="" autocomplete="off" class="layui-input" type="password">
    </div>
    <div class="layui-form-mid layui-word-aux">请务必填写密码:123456</div>
  </div>
  
  
  
  <div class="layui-form-item">
    <button class="layui-btn" lay-submit="" lay-filter="demo2">提交</button>
  </div>
</form>






</body>
</html>